package ConstructorAccess;

public class Student extends Person {

    public Student(){
        //子类构造方法中隐藏的super()去访问父类的无参构造
        super();
        System.out.println("子类的空参构造");
    }

    public Student(String name,int age){
        super(name,age);//用来访问父类的有参构造
    }

}
